//
//  MainViewController.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/2/25.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "MainViewController.h"


#import "YPTabBarController.h"
#import "JobViewController.h"
#import "ClientViewController.h"
#import "HouseViewController.h"
#import "PersonageViewController.h"
@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initViewControllers];
   
}

- (void)initViewControllers
{
    /*置业顾问*/
    //工作任务
    JobViewController *jobVC = [[JobViewController alloc] init];
    jobVC.yp_tabItemTitle = @"工作任务";
    jobVC.yp_tabItemImage = [UIImage imageNamed:@"tab_jobGrey"];
    jobVC.yp_tabItemSelectedImage = [UIImage imageNamed:@"tab_job"];
    
    //客户管理
    ClientViewController *clientVC = [[ClientViewController alloc] init];
    clientVC.yp_tabItemTitle = @"客户管理";
    clientVC.yp_tabItemImage = [UIImage imageNamed:@"tab_cusGrey"];
    clientVC.yp_tabItemSelectedImage = [UIImage imageNamed:@"tab_customer"];
    
    //房源销售
    HouseViewController *housetVC = [[HouseViewController alloc] init];
    housetVC.yp_tabItemTitle = @"房源销售";
    housetVC.yp_tabItemImage = [UIImage imageNamed:@"tab_houseG"];
    housetVC.yp_tabItemSelectedImage = [UIImage imageNamed:@"tab_house"];
    
    //个人中心
    PersonageViewController *personageVC = [[PersonageViewController alloc] init];
    personageVC.yp_tabItemTitle = @"个人中心";
    personageVC.yp_tabItemImage = [UIImage imageNamed:@"tab_mineG"];
    personageVC.yp_tabItemSelectedImage = [UIImage imageNamed:@"tab_mine"];
    
    self.viewControllers = [NSMutableArray arrayWithObjects:jobVC, clientVC, housetVC, personageVC, nil];
    
    
    
    
    
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
